//
//  LLDirectMessagesTableViewCell.m
//  LoveLove
//
//  Created by 达迩科技 on 2019/4/9.
//  Copyright © 2019 wkf. All rights reserved.
//

#import "LLDirectMessagesTableViewCell.h"

@implementation LLDirectMessagesTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView{
    self.headImage = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, 36, 36)];
    self.headImage.image = [UIImage imageNamed:@"椭圆 1596"];
    self.headImage.layer.masksToBounds = YES;
    self.headImage.contentMode = UIViewContentModeScaleAspectFill;
    self.headImage.layer.cornerRadius = 18;
    [self.contentView addSubview:self.headImage];
    
    self.titleLabel = [LLInitBaseViewTool labelWithText:@"谁谁谁" textColor:LLColorRGB(49) font:12 textAlignment:NSTextAlignmentLeft];
    self.titleLabel.frame = CGRectMake(60, 15, LLScreenWidth-110, 12);
    [self.contentView addSubview:self.titleLabel];
    
    self.subtitleLabel = [LLInitBaseViewTool labelWithText:@"谁谁谁给你的信息内容" textColor:LLColorRGB(127) font:12 textAlignment:NSTextAlignmentLeft];
    self.subtitleLabel.frame = CGRectMake(60, 34, LLScreenWidth-110, 12);
    [self.contentView addSubview:self.subtitleLabel];
    
    self.timeLabel = [LLInitBaseViewTool labelWithText:@"2-11" textColor:LLColorRGB(127) font:12 textAlignment:NSTextAlignmentRight];
    self.timeLabel.frame = CGRectMake(LLScreenWidth-50, 15, 43, 12);
    [self.contentView addSubview:self.timeLabel];
    
    self.numberLabel = [LLInitBaseViewTool labelWithText:@"4" textColor:LLColorRGB(255) font:11 textAlignment:NSTextAlignmentCenter];
    self.numberLabel.backgroundColor = LLColor(218, 13, 13);
    self.numberLabel.layer.cornerRadius = 7.5;
    self.numberLabel.layer.masksToBounds = YES;
    self.numberLabel.frame = CGRectMake(LLScreenWidth-22, 31, 15, 15);
    [self.contentView addSubview:self.numberLabel];
    
    UIView *lineview = [[UIView alloc] initWithFrame:CGRectMake(60, 55, LLScreenWidth-60, 1)];
    lineview.backgroundColor = LLColorRGB(243);
    [self.contentView addSubview:lineview];
    
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
